package debtbundler.domain.entity.impl;

import java.io.Serializable;

/**
 * A running sequence of <code>long</code> values starting from 1. 
 * 
 * @author Anssi
 *
 */
class LongSequence implements Serializable {
	private static final long serialVersionUID = 1L;
	private long current = 1;
	
	/**
	 * @return	the next value in the sequence
	 */
	long next() {
		long retVal = current;
		current++;
		return retVal;
	}
}
